﻿#ifndef DAEMONLOGDAO_H
#define DAEMONLOGDAO_H

#include <daemonlog.h>

class DaemonLogDao
{
public:
    explicit DaemonLogDao(QSqlDatabase sqlDatabase);
    ~DaemonLogDao();
    bool getList(QList<DaemonLog> &list);
    bool getPageListByParam(QList<DaemonLog> &list,const  uint64_t &page,const  uint64_t &pageSize,QString &progressName);
    bool getTotalByParam(uint64_t &total,QString &progressName);
    bool getOne(DaemonLog &object);
    bool saveOne(DaemonLog &object);
    bool deleteOne(DaemonLog &object);
    bool deleteAll();
private:
    QSqlDatabase db;
};

#endif // DAEMONLOGDAO_H
